package cn.cdiothree.dao;

import cn.cdiothree.dataobject.OrderItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author CumThing
 * @since 2020-02-02
 */
@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem>{

    /**
     * 根据订单id查找订单
     * @param orderId
     * @return
     */
    @Select("select * from order_item where order_id=#{order_id}")
    List<OrderItem> findByOrderId(String orderId);
}
